Skip to content

feat: cache V executable to speed up subsequent runs#14

Merged
JalonSolov merged 5 commits intovlang:mainfrom
cadamsdev:fix/caching
Mar 18, 2026
Merged

feat: cache V executable to speed up subsequent runs#14
JalonSolov merged 5 commits intovlang:mainfrom
cadamsdev:fix/caching

Conversation

@cadamsdev
Copy link
Contributor

@cadamsdev cadamsdev commented Mar 15, 2026

Notable changes

  • These changes cache the V executable when a version is specified.
  • Added cache input so the user can turn off caching (caching is enabled by default)

Example

- name: Setup V
  uses: vlang/setup-v@v1
  with:
    version: '0.5.1'

First run (30 seconds)

Screenshot 2026-03-15 at 7 40 19 PM

Subsequent run (1 second)

Screenshot 2026-03-15 at 7 44 06 PM

Result
30x faster subsequent runs

@cadamsdev cadamsdev marked this pull request as ready for review March 15, 2026 23:55
@cadamsdev
Copy link
Contributor Author

Hey @JalonSolov can I get a review?

@cadamsdev cadamsdev requested a review from JalonSolov March 17, 2026 16:57
@JalonSolov JalonSolov merged commit 7ba18b4 into vlang:main Mar 18, 2026
11 checks passed
@cadamsdev cadamsdev deleted the fix/caching branch March 18, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants